Skip to content

Commit

Permalink
refactor: Update cmake module[276319]
Browse files Browse the repository at this point in the history
  • Loading branch information
Greedysky committed Dec 4, 2024
1 parent 5824594 commit 6081ab4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,8 @@ else()
message(STATUS "Message TTK build by static link")
endif()

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 OLD)
cmake_policy(SET CMP0005 OLD)
cmake_policy(SET CMP0028 OLD)
endif(COMMAND cmake_policy)

add_definitions(-DQT_NO_DEBUG)
add_definitions(-DQT_THREAD)

add_definitions(-DTTK_LIBRARY)

set(TTK_BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
Expand Down
2 changes: 1 addition & 1 deletion TTKRun/TTKInit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ elseif(TTK_QT_VERSION VERSION_EQUAL "6")
endif()

add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries(${PROJECT_NAME} ${QT_LINK_LIBS})
target_link_libraries(${PROJECT_NAME} PRIVATE ${QT_LINK_LIBS})
3 changes: 1 addition & 2 deletions TTKService/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,4 @@ elseif(TTK_QT_VERSION VERSION_EQUAL "6")
endif()

add_executable(${PROJECT_NAME} ${SOURCE_FILES} ${HEADER_FILES} ${MOC_FILES})
add_dependencies(${PROJECT_NAME} TTKCore)
target_link_libraries(${PROJECT_NAME} ${QT_LINK_LIBS})
target_link_libraries(${PROJECT_NAME} PRIVATE ${QT_LINK_LIBS})

0 comments on commit 6081ab4

Please sign in to comment.