git-svn-id: svn://db.shs.com.ru/libs@157 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -16,11 +16,15 @@ file(GLOB MOCS "./*.h")
|
||||
file(GLOB CPPS "./*.cpp")
|
||||
file(GLOB UIS "./*.ui")
|
||||
file(GLOB RES "./*.qrc")
|
||||
file(GLOB MAINCPPS "./*_main.cpp")
|
||||
list(REMOVE_ITEM CPPS ${MAINCPPS})
|
||||
qt4_wrap_ui(CUIS ${UIS})
|
||||
qt4_wrap_cpp(CMOCS ${MOCS} OPTIONS -nw)
|
||||
qt4_add_resources(CRES ${RES})
|
||||
add_library(${PROJECT_NAME} SHARED ${CPPS} ${CUIS} ${CMOCS} ${CRES} ${MOCS})
|
||||
target_link_libraries(${PROJECT_NAME} ${LIBS})
|
||||
add_executable(blockeditor WIN32 "blockeditor_main.cpp" ${CRES})
|
||||
target_link_libraries(blockeditor ${LIBS} ${PROJECT_NAME})
|
||||
if (LIB)
|
||||
if (WIN32)
|
||||
set(CMAKE_INSTALL_PREFIX ${MINGW_DIR})
|
||||
|
||||
Reference in New Issue
Block a user