You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.9 KiB

14 years ago
include_directories("../../Plasma/Apps")
include_directories("../../Plasma/CoreLib")
include_directories("../../Plasma/FeatureLib/inc")
include_directories("../../Plasma/FeatureLib")
include_directories("../../Plasma/NucleusLib/inc")
include_directories("../../Plasma/NucleusLib")
include_directories("../../Plasma/PubUtilLib/inc")
include_directories("../../Plasma/PubUtilLib")
set(plResBrowser_HEADERS
plResBrowser.h
plResTreeView.h
14 years ago
)
qt5_wrap_cpp(plResBrowser_MOC ${plResBrowser_HEADERS})
14 years ago
set(plResBrowser_SOURCES
plResBrowser.cpp
plResTreeView.cpp
)
if(WIN32)
set(plResBrowser_HEADERS ${plResBrowser_HEADERS}
plWinRegistryTools.h
)
set(plResBrowser_SOURCES ${plResBrowser_SOURCES}
res/plResBrowser.rc
plWinRegistryTools.cpp
)
endif()
set(plResBrowser_RCC_SOURCES
res/plResBrowser.qrc
)
qt5_add_resources(plResBrowser_RCC ${plResBrowser_RCC_SOURCES})
set(plResBrowser_UIC_SOURCES
res/FindDialog.ui
res/ResBrowser.ui
)
qt5_wrap_ui(plResBrowser_UIC ${plResBrowser_UIC_SOURCES})
14 years ago
# For generated ui_*.h files
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(plResBrowser WIN32 MACOSX_BUNDLE
${plResBrowser_SOURCES} ${plResBrowser_HEADERS}
${plResBrowser_RCC} ${plResBrowser_UIC} ${plResBrowser_MOC})
target_link_libraries(plResBrowser CoreLib)
target_link_libraries(plResBrowser plResMgr)
target_link_libraries(plResBrowser pnSceneObject)
target_link_libraries(plResBrowser Qt5::Widgets)
14 years ago
if(USE_VLD)
target_link_libraries(plResBrowser ${VLD_LIBRARY})
endif()
source_group("Source Files" FILES ${plResBrowser_SOURCES} ${plResBrowser_MOC})
source_group("Header Files" FILES ${plResBrowser_HEADERS})
source_group("Resource Files" FILES ${plResBrowser_RCC_SOURCES} ${plResBrowser_RCC}
${plResBrowser_UIC_SOURCES} ${plResBrowser_UIC})