]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/src/frontends/CMakeLists.txt
too small for pchs
[lyx.git] / development / cmake / src / frontends / CMakeLists.txt
index e420e8873499d1b93aa3ba2c278e8dee1903f481..9b35780e83a499ede4387641ee45b7f4c112a373 100644 (file)
@@ -8,22 +8,20 @@ project(frontends)
 
 include_directories(${TOP_SRC_DIR}/src/frontends)
 
-add_subdirectory(controllers) 
-add_subdirectory(${qt_postfix}) 
+add_subdirectory(qt4) 
 
-
-file(GLOB frontends_sources ${TOP_SRC_DIR}/src/frontends/*.C)
-file(GLOB frontends_headers ${TOP_SRC_DIR}/src/frontends/*.h)
-
-lyx_add_msvc_pch(frontends)
+file(GLOB frontends_sources ${TOP_SRC_DIR}/src/frontends/${LYX_CPP_FILES})
+file(GLOB frontends_headers ${TOP_SRC_DIR}/src/frontends/${LYX_HPP_FILES})
 
 
 if(NOT MERGE_FILES)
-       add_library(frontends STATIC ${frontends_sources} ${frontends_headers})
-else(NOT MERGE_FILES)
-       lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/frontends_allinone.C frontends_sources)
-       add_library(frontends STATIC ${CMAKE_CURRENT_BINARY_DIR}/frontends_allinone.C)
-endif(NOT MERGE_FILES)
+       add_library(frontends ${library_type} ${frontends_sources} ${frontends_headers})
+else()
+       lyx_const_touched_files(_allinone  frontends_sources)
+       add_library(frontends ${library_type} ${_allinone_files})
+endif()
+
+target_link_libraries(frontends ${Lyx_Boost_Libraries})
 
 project_source_group("${GROUP_CODE}" frontends_sources frontends_headers)