diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-05-12 20:04:06 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-05-12 20:04:06 +0300 |
commit | 3f28fa125bbed6da8db3c2563a9fd599d5c9c026 (patch) | |
tree | 6c242ca32d9595007e71a3fa91e368e6d6fa808c /ArcWelderConsole | |
parent | 9abd4af8fe85514c1df214a21100cb9ed9b51d1e (diff) |
First attempt to use CMake to build.
Diffstat (limited to 'ArcWelderConsole')
-rw-r--r-- | ArcWelderConsole/ArcWelderConsole.vcxproj | 6 | ||||
-rw-r--r-- | ArcWelderConsole/ArcWelderConsole.vcxproj.filters | 6 | ||||
-rw-r--r-- | ArcWelderConsole/CMakeLists.txt | 19 | ||||
-rw-r--r-- | ArcWelderConsole/sourcelist.cmake | 3 |
4 files changed, 34 insertions, 0 deletions
diff --git a/ArcWelderConsole/ArcWelderConsole.vcxproj b/ArcWelderConsole/ArcWelderConsole.vcxproj index 331e79b..06b6e76 100644 --- a/ArcWelderConsole/ArcWelderConsole.vcxproj +++ b/ArcWelderConsole/ArcWelderConsole.vcxproj @@ -155,6 +155,12 @@ <Project>{31478bae-104b-4cc3-9876-42fa90cbd5fe}</Project> </ProjectReference> </ItemGroup> + <ItemGroup> + <Text Include="CMakeLists.txt" /> + </ItemGroup> + <ItemGroup> + <None Include="sourcelist.cmake" /> + </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> diff --git a/ArcWelderConsole/ArcWelderConsole.vcxproj.filters b/ArcWelderConsole/ArcWelderConsole.vcxproj.filters index af91d71..e7b2735 100644 --- a/ArcWelderConsole/ArcWelderConsole.vcxproj.filters +++ b/ArcWelderConsole/ArcWelderConsole.vcxproj.filters @@ -24,4 +24,10 @@ <Filter>Header Files</Filter> </ClInclude> </ItemGroup> + <ItemGroup> + <Text Include="CMakeLists.txt" /> + </ItemGroup> + <ItemGroup> + <None Include="sourcelist.cmake" /> + </ItemGroup> </Project>
\ No newline at end of file diff --git a/ArcWelderConsole/CMakeLists.txt b/ArcWelderConsole/CMakeLists.txt new file mode 100644 index 0000000..84058ec --- /dev/null +++ b/ArcWelderConsole/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required (VERSION "3.16") + +project(ArcWelderConsole C CXX) + +# add definitions from the GcodeProcessorLib and ArcWelder libraries +add_definitions(${GcodeProcessorLib_DEFINITIONS} ${ArcWelder_DEFINITIONS}) + +# Include the GcodeProcessorLib and ArcWelder's directories +include_directories(${GcodeProcessorLib_INCLUDE_DIRS} ${ArcWelder_INCLUDE_DIRS}) + +# include sourcelist.cmake, which contains our source list and exposes it as the +# ArcWelderConsoleSources variable +include(sourcelist.cmake) + +# Add an executable our ArcWelderConsoleSources variable from our sourcelist file +add_executable(${PROJECT_NAME} ${ArcWelderConsoleSources}) + +# specify linking to the GcodeProcessorLib and ArcWelder libraries +target_link_libraries(${PROJECT_NAME} GcodeProcessorLib ArcWelder) diff --git a/ArcWelderConsole/sourcelist.cmake b/ArcWelderConsole/sourcelist.cmake new file mode 100644 index 0000000..da77fe5 --- /dev/null +++ b/ArcWelderConsole/sourcelist.cmake @@ -0,0 +1,3 @@ +set(ArcWelderConsoleSources ${ArcWelderConsoleSources} + ArcWelderConsole.cpp +)
\ No newline at end of file |