Hello, My project is layout like this:
Linux-cmd$ tree
.
|-- CMakeLists.txt
|-- core
| |-- CMakeLists.txt
| |-- ... ... ...
| |-- (Some source files to implement the internal function.)
`-- ui
|-- CMakeLists.txt
|-- ... ... ...
|-- (Some source files to impliment the UI)
|-- main.cpp
There are a couple of things that either you have done wrong or I don't
understand. This is how I would implement things:
core/CMakeLists.txt
SET(SRC_LIST ConfigHolder.cpp DictItem.cpp Reciter.cpp ForgetCurve.cpp
Task.cpp Dict.cpp Manager.cpp WordList.cpp)
ADD_LIBRARY(core ${SRC_LIST})
ui/CMake
James Bigler wrote:
There are a couple of things that either you have done wrong or I
don't understand. This is how I would implement things:
core/CMakeLists.txt
SET(SRC_LIST ConfigHolder.cpp DictItem.cpp Reciter.cpp ForgetCurve.cpp
Task.cpp Dict.cpp Manager.cpp WordList.cpp)
ADD_LIBRARY(co