Project

General

Profile

Actions

Support #6907

closed

create a new Projekt

Added by Karl Estermann about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/18/2019
Due date:
% Done:

0%

Estimated time:

Description

I want to create a new project which is CMakeLists.Txt the right one if I want to use dbo. I can only use DBO in project WT. Everything works there. Is WT always the basis of a new project. What do I do?

Have anyone a CMakelIsts.txt for a new Projekt with DBO.


Files

CMakeLists.txt (206 Bytes) CMakeLists.txt Roel Standaert, 02/19/2019 11:35 AM
Actions #1

Updated by Roel Standaert about 5 years ago

I assume you installed Wt somewhere?

Wt exports its targets when it installs. This means you can just use find_package. I attached a little CMakeLists.txt that finds the Dbo and DboSqlite3 components inside of the Wt package, and links an executable called mywtdbo with them.

If Wt is installed in a non-standard location, you may need to supply the Wt_DIR argument to CMake, like: -DWt_DIR=/path/to/wt/lib/cmake/wt. This would not add the proper include path, though. I just pushed a fix for that. Otherwise, a quick fix would be to also require the Wt component and link with Wt::Wt (the linker will realize it doesn't need to actually link with Wt itself, but this makes sure the right include path is added).

Actions #2

Updated by Roel Standaert about 5 years ago

  • Status changed from New to Feedback
Actions #3

Updated by Roel Standaert over 4 years ago

  • Status changed from Feedback to Closed

I'm closing this due to inactivity. I hope my explanation was of some help.

Actions

Also available in: Atom PDF