Initial cmake conversion of the libt2n project except the example projects. The unit...
[libt2n] / codegen / CMakeLists.txt
diff --git a/codegen/CMakeLists.txt b/codegen/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cbdf18f
--- /dev/null
@@ -0,0 +1,14 @@
+# Sources
+set(CPP_SOURCES main.cpp)
+set(CPP_HEADERS codegen-stubhead.hxx)
+include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR})
+
+# Executables
+add_executable(libt2n_codegen ${CPP_SOURCES})
+
+# Dependencies
+target_link_libraries(libt2n_codegen ${XMLPP_LIBRARIES})
+
+# Installation
+install(TARGETS libt2n_codegen DESTINATION bin)
+install(FILES ${CPP_HEADERS} DESTINATION include)